<?php

/**
 * @application Automatical Judging System
 * @author deltamaster
 * @copyright Softrank Research Center
 * @version 2.1.0.0
 */

require_once "./include/common.inc.php";

if ($adminid != 1 && !$ended) showmessage($lang['invalid_operation'], 'index.php');
$namelist = array();
$query = $db->query("SELECT * FROM `{$tablepre}view_rank`");
for($rank = 1; $rank <= $db->num_rows($query); $rank++)
{
	$namelist[$rank] = $db->fetch_array($query);
}

include template('rank');

?>